package test;

import test.Projectile.AmmoType;


public class BasicGun extends AbstractGun {
	private static final int RATE_OF_FIRE = 10;
	
	
	public BasicGun(){
		super(RATE_OF_FIRE, AmmoType.PAINT_AMMO);
	}
	
	public BasicGun(AmmoType ammo){
		super(RATE_OF_FIRE, ammo);
	}
	
	@Override
	public void fire(AbstractShooter gunman) {
		if (GameEngine.getClicks() % RATE_OF_FIRE == 0){
			super.fire(gunman);
		}
		
	}

	
}